import{bt as e,dt as t,j as n,mt as r,xt as i}from"./B603vO-13smUKN.js";function a(e){let[t,n,r,...i]=e;return{timestamp:t,level:n,name:r,messages:i}}function o(t){let{level:a=void 0,filter:o=void 0,compact:s=!1,messages:c=[],errorTrace:l=!1,maxDepth:u=20,keepAsIs:d}=t,f=i(o),p=e(a),m=t.limit??1/0;return e=>{if(!p(e.level)||!f(e.name))return;e.timestamp??=r();let t=n(e,{maxDepth:u,errorTrace:l,keepAsIs:d});s===!0?c.push([t.timestamp,t.level,t.name,...t.messages]):c.push(t),m<=0?c.shift():--m}}var s={messages:[]};function c(){return localStorage.getItem(`zeed`)||t().registerHandler(o({level:-1,filter:`*`,compact:!0,messages:s.messages})),s}function l(){let e=document.getElementById(`app-spinner`);e&&e.parentElement?.removeChild(e)}export{a,o as i,s as n,c as r,l as t};